<div class="ucenterRight">
    <div class="orderCover">
        <div class="orderNav">
            <a href="/order/9/1.html" class="<?php echo $type==9?'on':'' ?>">全部订单</a>
            <a href="/order/3/1.html" class="<?php echo $type==3?'on':'' ?>">已完成</a>
            <a href="/order/1/1.html" class="<?php echo $type==1?'on':'' ?>">待支付</a>
        </div>
        <!-- 订单列表   -->
        <div class="orderList">
            <!--            正常订单显示-->
            <?php if (!empty($data['data'])){ ?>
                <?php foreach ($data['data'] as $key => $value){ ?>
                <div class="orderItem">
                    <p class="orderItemTitle"><span>订单号：<?php echo $value['orderNumber']?></span><span>下单时间：<?php echo date('Y-m-d H:i',$value['createTime'])?></span></p>
                    <div class="orderContent">
                        <div class="contentLeft">
                            <?php echo $value['course']['name'] ?>
                        </div>
                        <div class="contentCenter">
                            <p>x<?php echo $value['num'] ?></p>
                            <p>
                                <span>主讲老师：申友资深讲师团</span>
                                <?php if ($value['orderBelong']==8){ ?>
                                    <span>课程时长：<?php echo $value['course']['listeningFile']?></span>
                                <?php } else {?>
                                    <span>课程时长：<?php echo $value['course']['duration']?></span>
                                <?php } ?>
                            </p>
                            <p>
                                <?php if ($value['orderBelong'] == 8){ ?>
                                    <span>开课日期：/</span>
                                <?php }else{ ?>
                                    <span>开课日期：<?php echo str_replace('开课时间：', '', $value['course']['classTime'])?></span>
                                <?php } ?>
                                <span>性价比：/</span>
                            </p>
                        </div>
                        <div class="contentRight">
                            <!-- 查看详情   -->
                            <?php if ($value['orderBelong'] == 8){ ?>
                                <a href="https://ielts.thinkwithu.com/course/detail/<?php echo $value['course']['id'] ?>.html" target="_blank">
                                    查看详情
                                </a>
                            <?php } else { ?>
                                <a href="https://www.thinkuprep.com/course-detail/<?php echo $value['course']['id'] ?>.html" target="_blank">
                                    查看详情
                                </a>
                            <?php }?>
                            <?php if ($value['status'] == 1){?>
                                <!-- 立即支付   -->
                                <a href="https://order.thinkwithu.com/payType/<?php echo $value['id'] ?>.html" target="_blank">
                                    立即支付
                                </a>
                            <?php } ?>
                                
                            
                        </div>
                    </div>
                </div>    
                <?php } ?>
            <?php }else{?>
                <!--            暂无订单显示-->
                <div class="nodata">
                    <img src="https://file.viplgw.cn/ui/thinku-ielts-new/images/user/nodata.png" alt="">
                    <p>暂无订单，<a href="/mall.html">去选课</a></p>
                </div>

            <?php } ?>
            <!--            分页-->
            <div class="pageSize" >
                <ul>
                    <?php if ($data['count']>0){ ?>
                        <?php for ($i=1; $i <= $total; $i++) { ?>
                            <a href="/order/<?php echo $type?>/<?php echo $i?>.html" class="iPage <?php echo $i==$page?'on':'' ?>"><?php echo $i ?></a>
                        <?php } ?>
                    <?php } ?>
                </ul>
            </div>

        </div>
    </div>
</div>
<!-- <script src="https://file.viplgw.cn/ui/thinku-ielts-new/js/ucenter/order.js"></script> -->